package com.hhkj.admin.sale.mapper;

import com.hhkj.admin.sale.domain.SaleCommission;
import com.hhkj.admin.sale.model.dopo.SaleCommissionCountPo;
import com.hhkj.admin.sale.model.dopo.SaleCommissionDo;
import com.hhkj.admin.sale.model.dopo.SaleCommissionPo;
import com.ruoyi.common.base.biz.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

/**
 * @author admin
 * @description 针对表【s_sale_commission(记录每笔分佣情况)】的数据库操作Mapper
 * @createDate 2023-10-30 09:43:47
 * @Entity com.hhkj.admin.sale.domain.SaleCommission
 */
public interface SaleCommissionMapper extends BaseMapper<SaleCommission, SaleCommissionDo, SaleCommissionPo> {

    /**
     * 获取销售分佣金额统计
     *
     * @param saleId 销售id
     * @return 统计信息
     */
    SaleCommissionCountPo countPriceBySaleId(@Param("saleId") Long saleId);
}




